/*
 * @Author: HeAo
 * @Date: 2022-09-13 14:05:21
 * @LastEditTime: 2022-09-13 14:17:00
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \第二阶段\ES6\day01\src\7-modules.js
 * 别乱动！
 */
// commonjs模块特点
// 运行时加载模块 输出的是一个值的复制
// let firstName = 'ren'
// let lastName = 'terry'
// modules.exports = {
//   firstName,
//   lastName
// }
// setTimeout(() => {
//   firstName = 'zhao'
// }, 2000)

let first = 'ren'
let last = 'terry'
export {
  first,
  last
}
setTimeout(() => {
  first = 'zhao'
}, 2000)